<template>
    <div class="boxPlan">

        <!-- 1.人员管理 -->
        <div class="boxItem" v-show="personShow">

            <div class="item_left">
                <div class="l_item1 itemPublic">
                    <div class="border l_item1_box" style="width: 100%;height: 100%;text-align: center;">
                        <div class="item1_box1">
                            <Box1></Box1>
                        </div>
                        <div class="item1_box2">
                            <Box2></Box2>
                        </div>
                    </div>
                </div>
                <div class="l_item2">
                    <div style="background-color: #c12c1f; width: 100%;height: 100%;text-align: center;">
                        <Box4></Box4>
                    </div>
                </div>
            </div>

            <div class="item_right">
                <div class="r_item itemPublic">
                    <div style="background-color: #13393e; width: 100%;height: 100%;text-align: center;">
                        <Box2></Box2>
                    </div>
                </div>
            </div>
        </div>

    </div>
</template>

<script>
import Box1 from '@/pages/mater/box1.vue';
import Box2 from '@/pages/mater/box2.vue';
import Box4 from '@/pages/personnel/box4.vue';

// let Echarts = require('echarts/lib/echarts'); //基础实例 注意不要使用import
require('echarts/lib/chart/bar'); //按需引入 bar = 柱状图
export default {
    name: "index",
    components: { Box1, Box2, Box4, },
    data() {
        return {
            comIndex: 0,

            // 服务切换标识
            personShow: true,
            materialShow: false,
            monitorShow: false,
        };
    },
    methods: {
    },

    mounted() {

    }
};
</script>

<style scoped="scoped">
body,
html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: rgb(3, 12, 28);
    color: #ffffff;
}

.boxPlan {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #070f22;
}

.boxHead {
    width: 100%;
    height: 40px;
    text-align: center;
    color: #fff;
    display: flex;
}
.tab {
    display: inline-block;
    vertical-align: middle;
    width: 102px;
    height: 40px;
    margin-right: 8px;
    padding-left: 8px;
    cursor: pointer;
}
.head_active {
    background: url("../../assets/img/header_tab_bg_on.5082c4e3.png") no-repeat;
    background-size: cover;
}
.head_inactive {
    background: url("../../assets/img/header_tab_bg_off.ea595848.png") no-repeat;
    background-size: cover;
}
.tab span {
    text-align: center;
    font-size: 16px;
    line-height: 40px;
    color: #fff;
}
.l_item1_box {
    margin: 0 2px 0 2px;
    display: flex;
    width: 100%;
}
.item1_box1 {
    width: 50%;
}
.item1_box2 {
    margin-left: 10px;
    width: 50%;
}

.boxItem {
    width: 100%;
    height: calc(100vh - 80px);
    overflow: auto;
}

.itemPublic {
    float: left;
    height: calc((100vh - 80px) / 2);
    padding: 8px 5px;
    box-sizing: border-box;
}

.item_left {
    float: left;
    width: calc(100% / 3 * 2);
    height: auto;
    overflow: hidden;
}

.item_right {
    float: left;
    width: calc(100% / 3);
    height: auto;
    overflow: hidden;
}

.l_item1 {
    width: 100%;
}

.l_item2 {
    float: left;
    width: 100%;
    height: calc((100vh - 80px) / 2);
    padding: 8px 5px;
    box-sizing: border-box;
}

.r_item {
    width: 100%;
    height: calc(100vh - 80px);
}

@media screen and (max-width: 1080px) {
    .item_left,
    .item_right {
        width: 100%;
    }
    .l_item2 {
        height: calc((100vh - 80px) / 2);
    }
}

@media screen and (max-width: 80px) {
    .r_item {
        width: 100%;
    }
}

/* 物料管理 */
.boxMater {
    width: 100%;
    height: 100%;
    color: #fff;
}
.iframe {
    width: 100%;
    height: 100%;
    transform: scale(0.8);
    margin-top: -100px;
    /* margin-left: -10%; */
}
</style>
